
/**
 * 文件描述：全局混入文件
 * 创建时间：2023/9/7 13:41
 * 创建人：二
 * 命名规则：使用mixin开头，防止和其他冲突
 */
import {
	arrayObjDedUp,
	downloadFile,
	downloadHrefFile,
	fileUrl,
	getCascaderSelectObj,
	handleCopy,
	messageBoxConfirm,
	numberCalculate,
	objAssign,
	totalPageNum,
	treeFindPath
} from '@/utils/common'

export default {
	data() {
		return {
			// 记录页面是否首次加载
			mixinFirstLoad: true
		}
	},
	methods: {
		mixinFileUrl: fileUrl,
		mixinHandleCopy: handleCopy,
		mixinTotalPageNum: totalPageNum,
		mixinObjAssign: objAssign,
		mixinArrayObjDedUp: arrayObjDedUp,
		mixinNumberCalculate: numberCalculate,
		mixinGetCascaderSelectObj: getCascaderSelectObj,
		mixinTreeFindPath: treeFindPath,
		mixinDownloadHrefFile: downloadHrefFile,
		mixinDownloadFile: downloadFile,
		mixinMessageBoxConfirm: messageBoxConfirm
	}
}
